/*
 *  Cero Project - Copyright   2006 The Cero Developement Team 
 *  (Michael Laguerre, Camille Roux, Matthieu Segret, Mathieu Sivade) 
 * 
 *  This program is free software; you can redistribute it and/or modify it 
 *  under the terms of the GNU General Public License as published by the Free 
 *  Software Foundation; either version 2 of the License, or (at your option) 
 *  any later version.
 * 
 *  This program is distributed in the hope that it will be useful, but 
 *  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
 *  or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 
 *  for more details.
 */

package org.ceroproject.ui.graphical.tools;

import java.awt.*;

import org.ceroproject.games.*;


/**
 * Interface which creates a Graphical Card associated to a Card
 * 
 * @author Matt
 */
public interface GraphicsCard extends Rectangle {

	/* ------------- Method ------------- */

	/**
	 * Return the Card
	 * 
	 * @return the Card
	 */
	public Card getCard();

	/**
	 * Set the image path of card
	 * 
	 * @param path
	 *            the image path of card
	 */
	public void setImgPath(String path);

	/**
	 * Return the image path of card
	 * 
	 * @return the image path of card
	 */
	public String getImgPath();

	/**
	 * Return the image's scale
	 * 
	 * @return the image's scale
	 */
	public double getScale();

	/**
	 * Return the status of a Card
	 * 
	 * @return true if the graphical card has selected, false otherwise
	 */
	public boolean getSelected();

	/**
	 * Select the Graphical Card
	 * 
	 * @param state
	 *            true if the Card is selected, false otherwise
	 */
	public void setSelected(boolean state);

	/**
	 * Paint the Graphical Card
	 * 
	 * @param g
	 *            Graphics to paint
	 * @param deck
	 *            the deck where to paint the Graphical zone
	 */
	public void paint(Graphics g, Deck deck);

}
